package com.learning.spring.data.transaction.config.annotation;

import org.springframework.transaction.annotation.Transactional;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * ClassName: ATransaction
 * Description: 自定义一个绑定到特定事务管理器的注解
 * Date: 2020/11/3 20:17 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Transactional(transactionManager = "a")
public @interface ATransaction {
}
